const express = require("express");

const app = express();

const data = require("./data.json");

app.get("/api/header", (req, res) => {
  res.json({
    data:data.seller
  });
});

app.get("/api/goods", (req, res) => {
  res.json({
    data:data.goods
  });
});

app.listen(3006, () => {
  console.log("服务已启动：http://localhost:3006");
});

